package com.sskj.one.mine;


import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.one.presenter.BasePresenter;

/**
 * @author Hey
 * Create at  2019/06/04
 */
class NickNamePresenter extends BasePresenter<NickNameActivity> {

    public void setNickName(String nickname) {
        httpService.setNickName(nickname)
                .tag(this)
                .execute(new JsonCallBack<HttpData>() {
                    @Override
                    public void onHTTPSuccess(HttpData data) {
                        mView.setNickNameOK();
                    }
                });
    }
}
